<%@ page language="java" contentType="text/html; charset=UTF-8"
         pageEncoding="UTF-8" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core_rt" %>
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions"%>
<%@ taglib uri="/mytag" prefix="yjd" %>
<%@ taglib uri="http://java.sun.com/jsp/jstl/fmt" prefix="f" %>

<div class="nav">
    <div class="return">
        <%--返回群组处的用户列表--%>
        <c:if test="${param.back_path==0 }">
            <a href="${requestScope.FPWEB.rootPath }/user/growing/group/users${requestScope.FPWEB.urlStuff }?rule_id=${model.strMap.rule_id}&group_id=${param.group_id}">返回上一级</a>
        </c:if>
        <%--返回搜索处的用户列表--%>
        <c:if test="${param.back_path==1 }">
            <a href="${requestScope.FPWEB.rootPath }/user/growing/users/search${requestScope.FPWEB.urlStuff }?user_id=${param.user_id}">返回上一级</a>
        </c:if>
    </div>
</div>
<div class="wrap">
    <div class="h_a">
        <h3>用户详情 (上次统计时间：<yjd:jstl_date value="${model.update_time}" parttern="yyyy-MM-dd HH:mm:ss"/>)</h3>
    </div>
    <div class="h_a">基本信息</div>
    <div class="table_full">
        <table width="100%">
            <tr>
                <th width="50">用户ID</th>
                <td width="80">${model.user_id}</td>
                <th width="50">累计投资次数</th>
                <td width="80">${model.all_invest_times}</td>
                <th width="50">累计投资金额</th>
                <td width="80">${model.all_invest_amount}</td>
            </tr>
            <tr>
                <th width="50">账户余额</th>
                <td width="80">${model.balance}</td>
                <th width="80">微信客服号</th>
                <td>${model.strMap.wx_customer_service }</td>
                <th width="80">会员等级</th>
                <td width="150">
                    <c:if test="${model.user_level == 1}">普通会员</c:if>
                    <c:if test="${model.user_level == 2}">铜牌会员</c:if>
                    <c:if test="${model.user_level == 3}">银牌会员</c:if>
                    <c:if test="${model.user_level == 4}">金牌会员</c:if>
                    <c:if test="${model.user_level == 5}">钻石会员</c:if>
                    <c:if test="${model.user_level == 6}">白金会员</c:if>
                </td>
            </tr>
            <tr>
                <th width="50">用户属性</th>
                <td width="80">
                    <c:if test="${model.user_property == 0}">普通用户</c:if>
                    <c:if test="${model.user_property == 1}">存管用户</c:if>
                    <c:if test="${model.user_property == 2}">门店用户</c:if>
                    <c:if test="${model.user_property == 4}">借款用户</c:if>
                </td>
                <th width="80">用户状态</th>
                <td width="150">
                    <c:if test="${model.user_status == 0}">注册未开通存管</c:if>
                    <c:if test="${model.user_status == 1}">已开通存管未充值</c:if>
                    <c:if test="${model.user_status == 2}">充值未投资</c:if>
                    <c:if test="${model.user_status == 3}">投资未复投</c:if>
                    <c:if test="${model.user_status == 4}">复投未推广</c:if>
                    <c:if test="${model.user_status == 5}">复投已推广</c:if>
                </td>
            </tr>
        </table>
    </div>
    <div class="h_a">转化监控信息</div>
    <div class="table_full">
        <table width="100%">
            <tr>
                <th width="80">注册时间</th>
                <td width="150"><yjd:jstl_date value="${model.regist_time}" parttern="yyyy-MM-dd"/></td>
                <th width="80">注册来源</th>
                <td width="150">
                    <c:if test="${model.regist_channel == 0}">未知</c:if>
                    <c:if test="${model.regist_channel == 1}">PC</c:if>
                    <c:if test="${model.regist_channel == 2}">安卓</c:if>
                    <c:if test="${model.regist_channel == 3}">iOS</c:if>
                    <c:if test="${model.regist_channel == 4}">微信</c:if>
                    <c:if test="${model.regist_channel == 5}">微站</c:if>
                    <c:if test="${model.regist_channel == 6}">活动中心发放</c:if>
                    <c:if test="${model.regist_channel == 7}">后台管理</c:if>
                </td>
            </tr>
            <tr>
                <th width="80">开通存管时间</th>
                <td width="150"><yjd:jstl_date value="${model.open_account}" parttern="yyyy-MM-dd"/></td>
                <th width="80">首充时间</th>
                <td width="150"><yjd:jstl_date value="${model.first_recharge}" parttern="yyyy-MM-dd"/></td>
            </tr>
            <tr>
                <th width="80">首投时间</th>
                <td width="150"><yjd:jstl_date value="${model.first_invest}" parttern="yyyy-MM-dd"/></td>
                <th width="80">首投金额</th>
                <td width="150">${model.first_invest_amount}</td>
            </tr>
            <tr>
                <th width="80">转化状态</th>
                <td width="150">
                    <c:if test="${model.transfer_status == 0}">注册未开通存管</c:if>
                    <c:if test="${model.transfer_status == 1}">已开通存管未充值</c:if>
                    <c:if test="${model.transfer_status == 2}">充值未投资</c:if>
                    <c:if test="${model.transfer_status == 3}">投资未复投</c:if>
                </td>
            </tr>
        </table>
    </div>
    <div class="h_a">推广监控信息</div>
    <div class="table_full">
        <table width="100%">
            <tr>
                <th width="80">累计推广人数</th>
                <td width="150">${model.shared_users}</td>
                <th width="80">推广状态</th>
                <td width="150">
                    <c:if test="${model.share_status == 0}">未推广</c:if>
                    <c:if test="${model.share_status == 1}">推广新手</c:if>
                    <c:if test="${model.share_status == 2}">普通推广员</c:if>
                    <c:if test="${model.share_status == 3}">专业推广员</c:if>
                </td>
            </tr>
        </table>
    </div>
    <div class="h_a">流失监控信息</div>
    <div class="table_full">
        <table width="100%">
            <tr>
                <th width="80">未投资天数</th>
                <td width="150">${model.no_invest_days}</td>
                <th width="80">最后一笔回款时间</th>
                <td width="150"><yjd:jstl_date value="${model.latest_payback_time}" parttern="yyyy-MM-dd"/></td>
                <th width="80">最近提现金额</th>
                <td width="150">${model.latest_cashout_amount}</td>
            </tr>
            <tr>
                <th width="80">最近提现时间</th>
                <td width="150"><yjd:jstl_date value="${model.latest_cashout_time}" parttern="yyyy-MM-dd"/></td>
                <th width="80">流失状态</th>
                <td width="150">
                    <c:if test="${model.available_status == 0}">存在流失倾向</c:if>
                    <c:if test="${model.available_status == 1}">已流失</c:if>
                </td>
            </tr>
        </table>
    </div>
    <div class="h_a">留存监控信息</div>
    <div class="table_full">
        <table width="100%">
            <tr>
                <th width="130">购买出借项目次数</th>
                <td width="80">${model.invest_times}</td>
                <th width="130">购买债权次数</th>
                <td width="80">${model.invest_creditor_times}</td>
                <th width="130">债权转让次数</th>
                <td width="80">${model.creditor_transfer_times}</td>
            </tr>
            <tr>
                <th width="130">30天内购买出借项目次数</th>
                <td width="80">${model.invest_times_30d}</td>
                <th width="130">60天内购买出借项目次数</th>
                <td width="80">${model.invest_times_60d}</td>
                <th width="130">90天内购买出借项目次数</th>
                <td width="80">${model.invest_times_90d}</td>
            </tr>
            <tr>
                <th width="130">30天内购买出借项目金额</th>
                <td width="80">${model.invest_amount_30d}</td>
                <th width="130">60天内购买出借项目金额</th>
                <td width="80">${model.invest_amount_60d}</td>
                <th width="130">90天内购买出借项目金额</th>
                <td width="80">${model.invest_amount_90d}</td>
            </tr>
            <tr>
                <th width="130">30天内购买债权项目次数</th>
                <td width="80">${model.invest_creditor_times_30d}</td>
                <th width="130">60天内购买债权项目次数</th>
                <td width="80">${model.invest_creditor_times_60d}</td>
                <th width="130">90天内购买债权项目次数</th>
                <td width="80">${model.invest_creditor_times_90d}</td>
            </tr>
            <tr>
                <th width="130">30天内购买债权项目金额</th>
                <td width="80">${model.invest_creditor_amount_30d}</td>
                <th width="130">60天内购买债权项目金额</th>
                <td width="80">${model.invest_creditor_amount_60d}</td>
                <th width="130">90天内购买债权项目金额</th>
                <td width="80">${model.invest_creditor_amount_90d}</td>
            </tr>
            <tr>
                <th width="130">30天内债权转让申请次数</th>
                <td width="80">${model.creditor_transfer_apply_times_30d}</td>
                <th width="130">60天内债权转让申请次数</th>
                <td width="80">${model.creditor_transfer_apply_times_60d}</td>
                <th width="130">90天内债权转让申请次数</th>
                <td width="80">${model.creditor_transfer_apply_times_90d}</td>
            </tr>
            <tr>
                <th width="130">30天内债权转让成功次数</th>
                <td width="80">${model.creditor_transfer_success_times_30d}</td>
                <th width="130">60天内债权转让成功次数</th>
                <td width="80">${model.creditor_transfer_success_times_60d}</td>
                <th width="130">90天内债权转让成功次数</th>
                <td width="80">${model.creditor_transfer_success_times_90d}</td>
            </tr>
            <tr>
                <th width="130">30天内债权转让失败次数</th>
                <td width="80">${model.creditor_transfer_failed_times_30d}</td>
                <th width="130">60天内债权转让失败次数</th>
                <td width="80">${model.creditor_transfer_failed_times_60d}</td>
                <th width="130">90天内债权转让失败次数</th>
                <td width="80">${model.creditor_transfer_failed_times_90d}</td>
            </tr>
            <tr>
                <th width="130">持有债权数</th>
                <td width="80">${model.creditor_count}</td>
                <th width="130">在投金额</th>
                <td width="80">${model.investing_amount}</td>
                <th width="130">最近投资时间</th>
                <td width="80"><yjd:jstl_date value="${model.latest_invest_time}" parttern="yyyy-MM-dd"/></td>
            </tr>
            <tr>
                <th width="130">留存状态</th>
                <td width="80">
                    <c:if test="${model.keep_status == 0}">忠实用户</c:if>
                    <c:if test="${model.keep_status == 1}">成熟用户</c:if>
                    <c:if test="${model.keep_status == 2}">新生用户</c:if>
                </td>
                <th width="130">最近使用的优惠券</th>
                <td>${model.latest_used_volumn}</td>
                <th width="130">最近登录时间</th>
                <td width="80"><yjd:jstl_date value="${model.latest_login_time}" parttern="yyyy-MM-dd"/></td>
            </tr>
            <tr>
                <th width="130">最近登录渠道</th>
                <td width="130">
                    <c:if test="${model.channel == 0}">未知</c:if>
                    <c:if test="${model.channel == 1}">PC</c:if>
                    <c:if test="${model.channel == 2}">android</c:if>
                    <c:if test="${model.channel == 3}">iOS</c:if>
                    <c:if test="${model.channel == 4}">微信</c:if>
                    <c:if test="${model.channel == 5}">wap</c:if>
                    <c:if test="${model.channel == 6}">活动中心发放</c:if>
                    <c:if test="${model.channel == 7}">后台管理</c:if>
                </td>
            </tr>
        </table>
    </div>
</div>
